﻿using System.Collections.Generic;

namespace IOA.MES.EsbApi.Models.Request
{
    /// <summary>
    /// 基础请求
    /// </summary>
    public class BaseRequest<T>
    {
        /// <summary>
        /// 固定内容
        /// </summary>
        public estInfo estInfo { get; set; }

        /// <summary>
        /// 业务对象
        /// </summary>
        public RequestInfo<T> requestInfo { get; set; }
    }

    /// <summary>
    /// ESB请求
    /// </summary>
    public class estInfo
    {
        /// <summary>
        /// ID
        /// </summary>
        public string instId { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string requestTime { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string attr1 { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string attr2 { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string attr3 { get; set; }
    }

    public class RequestInfo<T>
    {
        public RequestInfoData<T> data { get; set; }
    }
    public class RequestInfoData<T>
    {
        public T list { get; set; }
    }
}
